<?php

namespace app\admin\validate;

use think\Validate;

class CommonnValidate extends Validate
{
    protected $rule =   [
        'current' => 'require',
        'size' => 'require',
        'id' => 'require',
        'ids' => 'require',
    ];

    protected $message = [
        'current.require' => '缺少参数current',
        'size.require' => '缺少参数size',
        'id.require' => '缺少参数id',
        'ids.require' => '缺少参数ids',
    ];

    protected $scene = [
        'list' => ['current', 'size'],
        'edit' => ['id'],
        'del' => ['ids'],
        'dels' => ['ids'],
    ];


}